#ifndef TARGATEXTURE_H
#define TARGATEXTURE_H

#include "../Config.h"

#ifdef _WIN32
  #include <windows.h>
#else // !_WIN32
  #include <stdlib.h>
#endif // _WIN32

#include <stdio.h>

#define GL_GENERATE_MIPMAP_SGIS	   0x8191
#define GL_CLAMP_TO_EDGE_EXT	   0x812F

#define BSB_TEX_CLAMP              2
#define BSB_TEX_SPHERICAL          4

class TargaTexture {
	public:
		unsigned char *imageData; 
		unsigned int  bpp;
		unsigned int  width;
		unsigned int  height;
		unsigned int  texID;
		unsigned int  type;
	  unsigned char typeHeader[12];
		unsigned char mainHeader[6];
		unsigned int  bytesPerPixel;
		unsigned int  imageSize;
	
	    static unsigned char uncompressed[12];
	    static unsigned char compressed[12];


		TargaTexture();
		~TargaTexture();
		
		bool loadUncompressed(string,FILE*, int);
		bool load(string filename);
		
//		void generate(GLint components);
//		void environment(GLuint envmode,GLuint genmode);
//		void enable();
//		void release();
    
    private:
//        LogManager *logManager;
};

#endif

